<template>
	<view class="footprint-style">
		<view class="footprint-content">
			<!-- 懒加载 -->
			<view class="footprint-content-cont" v-for="item in footprintData" :key="item.name">
				<image :src="item.imgs" mode=""></image>
				<view class="cont-right">
					<view class="cont-right-head">
						<view>
							<view style="font-size: 20px;font-weight: bold;">{{item.name}}</view>
							<view style="font-size: 14px;color: #ccc;line-height: 32px;">{{item.area + item.range}}</view>
						</view>
						<view style="font-size: 16px;color: red;">{{item.price}}元/平</view>
					</view>
					<view style="font-size: 14px;color: #ccc;">{{item.type}}</view>
				</view>
			</view>
			<view style="text-align: center;align-items: 50px;" v-show="showtext">还没有记录哟，看看别的吧~~~~~~</view>
		
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showtext:false,
				footprintData:[],
			}
		},
		onLoad(){
			console.log(uni.getStorageSync('footvalue'))
			
			this.footprintData = uni.getStorageSync('footvalue')
			
			if(this.footprintData.length == 0){
				this.showtext = true
			}else{
				this.showtext = false
			}
			
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
.footprint-style{
	padding: 10px;
	.footprint-content{
		background-color: #fff;
		padding: 0 20px;
		margin:10px 0;
		.footprint-content-cont{
			display: flex;
			image{
				width: 80px;
				height: 100px;
				margin-top: 6px;
				margin-right: 10px;
			}
			.cont-right{
				flex: 1;
				.cont-right-head{
					display: flex;
					justify-content: space-between;
				}
				
			}
		}
	}
}
</style>
